package com.qcs.sleep.warn.action;

import android.content.Intent;

import com.qcs.sleep.call.ActionWatcher;

/**
 * Created by chshqiang on 15-7-25.
 * 锁屏动作监听
 */
public abstract class ScreenOnWatcher extends ActionWatcher {
    @Override
    public void update(String action) {
        if (Intent.ACTION_USER_PRESENT.equals(action) || Intent.ACTION_SCREEN_ON.equals(action)) {
            onScreenOn();
        }
    }

    protected abstract void onScreenOn();
}
